package com.arturjaneczko.view.impl.clipboard.preview._cell;

import javax.swing.table.TableCellEditor;
import javax.swing.table.TableCellRenderer;

import com.arturjaneczko.model.impl.EClipboardDataType;

public class Cell {

	private EClipboardDataType clipboardDataType;
	private CellModel cellModel;

	public Cell(EClipboardDataType clipboardDataType) {
		this.clipboardDataType = clipboardDataType;
	}

	public Cell(CellModel cellModel) {
		this.cellModel = cellModel;
	}

	public TableCellEditor getIconCellEditor() {
		return new IconCell(cellModel);
	}

	public TableCellRenderer getIconCellRenderer() {
		return new IconCell(cellModel);
	}

	public TableCellEditor getPreviewCellEditor() {
		return new PreviewCell(clipboardDataType);
	}

	public TableCellRenderer getPreviewCellRenderer() {
		return new PreviewCell(clipboardDataType);
	}
	
	public TableCellEditor getTypeCellEditor() {
		return new TypeCell(cellModel);
	}

	public TableCellRenderer getTypeCellRenderer() {
		return new TypeCell(cellModel);
	}

}
